/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dominio;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author KOFMASTER
 */
@Entity
@Table(name = "logro")
@NamedQueries({@NamedQuery(name = "Logro.findAll", query = "SELECT l FROM Logro l"), @NamedQuery(name = "Logro.findByIdlogro", query = "SELECT l FROM Logro l WHERE l.idlogro = :idlogro"), @NamedQuery(name = "Logro.findByPeriodoeva", query = "SELECT l FROM Logro l WHERE l.periodoeva = :periodoeva"), @NamedQuery(name = "Logro.findByDescripcion", query = "SELECT l FROM Logro l WHERE l.descripcion = :descripcion")})
public class Logro implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idlogro")
    private Integer idlogro;
    @Basic(optional = false)
    @Column(name = "idasignatura")
    private Integer idasignatura;
    @Column(name = "periodoeva")
    private Integer periodoeva;
    @Column(name = "descripcion")
    private String descripcion;

    public Logro() {
    }

    public Logro(Integer idlogro) {
        this.idlogro = idlogro;
    }

    public Integer getIdlogro() {
        return idlogro;
    }

    public void setIdlogro(Integer idlogro) {
        this.idlogro = idlogro;
    }


    public Integer getIdasignatura() {
        return idasignatura;
    }

    public void setIdasignatura(Integer idasignatura) {
        this.idasignatura = idasignatura;
    }


    public Integer getPeriodoeva() {
        return periodoeva;
    }

    public void setPeriodoeva(Integer periodoeva) {
        this.periodoeva = periodoeva;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idlogro != null ? idlogro.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof Logro)) {
            return false;
        }
        Logro other = (Logro) object;
        if ((this.idlogro == null && other.idlogro != null) || (this.idlogro != null && !this.idlogro.equals(other.idlogro))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dominio.Logro[idlogro=" + idlogro + "]";
    }

}
